<?php
/**
 * Created by PhpStorm.
 * User: songs
 * Date: 2019/8/23
 * Time: 10:37
 */

namespace App\Jobs\Yii;


class Yii
{   /**
    * @var Yiiapp $app;
   */
    static $app=null;
    public static function configure($object, $properties)
    {
        foreach ($properties as $name => $value) {
            $object->$name = $value;
        }

        return $object;
    }

}
Yii::$app=new Yiiapp();